package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.TeamRecommendDao;
import com.platform.entity.TeamRecommendEntity;
import com.platform.service.TeamRecommendService;

/**
 * 团队推荐人Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-06-04 17:37:12
 */
@Service("teamRecommendService")
public class TeamRecommendServiceImpl implements TeamRecommendService {
    @Autowired
    private TeamRecommendDao teamRecommendDao;

    @Override
    public TeamRecommendEntity queryObject(Long uid) {
        return teamRecommendDao.queryObject(uid);
    }

    @Override
    public List<TeamRecommendEntity> queryList(Map<String, Object> map) {
        return teamRecommendDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return teamRecommendDao.queryTotal(map);
    }

    @Override
    public int save(TeamRecommendEntity teamRecommend) {
        return teamRecommendDao.save(teamRecommend);
    }

    @Override
    public int update(TeamRecommendEntity teamRecommend) {
        return teamRecommendDao.update(teamRecommend);
    }

    @Override
    public int delete(Long uid) {
        return teamRecommendDao.delete(uid);
    }

    @Override
    public int deleteBatch(Long[] uids) {
        return teamRecommendDao.deleteBatch(uids);
    }

    @Override
    public Map<String, Object> queryUserDetails(String phone) {
        return teamRecommendDao.queryUserDetails(phone);
    }

    @Override
    public Integer queryUserExists(Integer id) {
        return teamRecommendDao.queryUserExists(id);
    }
}
